hi_cc_library_static(
  NAME
    ai::fmk::graph::csrc::csrc_static
  SRCS
    context.cpp
    model.cpp
    operator.cpp
    attr_value.cpp
    graph.cpp
    tensor.cpp
  DEPS
    huawei::c_sec
  CDEFS
    HIAI_C_API_VISIABLE
  COPTS
    -frtti
)

# libhiai_c.so
hi_cc_library_shared(
  NAME
    ai::fmk::hiai_c_shared
  DEPS
    ai::fmk::graph::core_static
    ai::fmk::graph::utils_static
    ai::fmk::graph::persistance::proto_impl_static
    ai::fmk::graph::persistance::proto_impl::ge_ir_static
    ai::fmk::graph::persistance::static_proxy_static
    ai::fmk::util::dl_helper_static
    ai::fmk::util::hiai_plugin_version_static
    google::protobuf_lite_static
    ai::infra::dl_helper_static
    ai::infra::log
  WHOLE_STATIC_LIBS
    ai::fmk::model_runtime::core_cpp_static
    ai::fmk::graph::csrc::csrc_static
    ai::fmk::model_runtime::core_static
    ai::fmk::tensor::nd_tensor_static
    ai::fmk::model_runtime::direct_static
    ai::fmk::util::model_type_util_static
    ai::fmk::infra::buffer_static
    ai::fmk::infra::base_buffer_static
    ai::fmk::infra::native_handle_static
    ai::fmk::tensor::aipp_para_compatible_static
    ai::fmk::util::version_static
    ai::fmk::base::common::file_static
  LOPTS
    -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/version.map
)

hi_target_output_name(ai::fmk::hiai_c_shared hiai_c)